package cn.gzsxt.dao.impl;

import cn.gzsxt.dao.TenantDao;
import cn.gzsxt.po.Tenant;

public class TenantDaoImpl extends BaseDaoImpl implements TenantDao {

	@Override
	public int insertTenant(Tenant t) {
		String sql = "insert into t_tenant (companyname,managername,phone,identity,identitypositive,identitynegative)values(?,?,?,?,?,?)";
		
		Object[] params = {t.getCompanyname(),t.getManagername(),t.getPhone(),t.getIdentity(),t.getIdentitypositive(),t.getIdentitynegative()};
		
		return super.update(sql, params);
	}

}
